package com.mtt.erp.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mtt.erp.order.domain.MbaFile;
import com.mtt.erp.order.domain.MbbFile;
import com.mtt.erp.order.dao.MbbFileMapper;
import com.mtt.erp.order.service.IMbbFileService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.util.StringUtil;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author guomengzhou
 */
@Service
public class MbbFileServiceImpl extends ServiceImpl<MbbFileMapper, MbbFile> implements IMbbFileService {

    @Override
    public List<MbbFile> mbbListByMbb01(String mbb01) {
        LambdaQueryWrapper<MbbFile> queryWrapper = new LambdaQueryWrapper<>();
        if(StringUtils.isNotBlank(mbb01)){
            queryWrapper.eq(MbbFile::getMbb01,mbb01);
        }
        return this.baseMapper.selectList(queryWrapper);
    }
}
